package com.betterjr.modules.risk.loan.util;

public class HttpRequestBuilder {

    private HttpRequestObject requestObject;

    private HttpRequestBuilder() {
        super();

        requestObject = new HttpRequestObject();
    }

    public static HttpRequestBuilder newInstance() {
        return new HttpRequestBuilder();
    }

    public HttpRequestBuilder url(String url) {

        requestObject.setUrl(url);
        return this;
    }

    public HttpRequestBuilder paramObject(String anParamObject) {
        requestObject.setParamObject(anParamObject);
        return this;
    }

    public HttpRequestBuilder requestType(String requestType) {
        requestObject.setRequestType(requestType);
        return this;
    }

    public HttpRequestObject builder() {

        return requestObject;
    }

}
